<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ include file="../common/taglibs.jsp"%>
<c:set var="current_menu" value="product" scope="page"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>Persian silk rugs,silk carpets,handmade silk rugs,wool and silk carpets,rugs and carpets-Yilong silk carpet factory.</title>
	    <meta name="keywords" content="Silk carpet-silk rug-persian silk rug-persian silk carpet-handmade silk rug-handmade silk carpet-wool blended silk rugs"/>
		<meta name="Description" content="Manufacturer of Yilong silk carpet factory, such as Persian carpets, Persian rugs, Handmade carpets, Handmade rugs, China silk carpets, China silk rugs, Iran silk carpets,Iran silk rugs, Turkish silk carpet, Turkish silk rug etc"/>

<%@ include file="../common/headtags.jsp"%>
<script type="text/javascript" src="${pageScope.ctx}/js/index.js"></script>
	</head>
	<body>
		<div id="page" class="w950">
			<%@ include file="../top.jsp"%>
			<div id="content">
				<div class="layout grid-s200m0">
					<div class="col-main">
						<div class="main-wrap">
                          <%@ include file="../left.jsp"%>                       
						</div>
					</div>
					<div class="col-sub">
						<div class="navi">
                           <a href="${pageScope.ctx}/">home</a> &gt; 
                           <c:choose>
                             <c:when test="${empty params or params eq '*'}"> product</c:when>
                             <c:otherwise><a href="${pageScope.ctx}/product/c/">product</a></c:otherwise>
                           </c:choose>   
                           <c:set var="ps" value="${params}" scope="page"/>       
                           <%
                              Object obj=pageContext.getAttribute("ps");
                              if(obj!=null || !obj.equals("*"))
                              {
                                 String ps[]=obj.toString().split("--");
                                 String is[]=null;
                                 String newparams="";
                                 for(int i=0;ps.length >0 && i<ps.length-1;i++)
                                 {
                                   
                                    is=ps[i].split("-");
                                    pageContext.setAttribute("_"+is[0],is[1]);
                                    for(int j=0;j<=i;j++)
                                    {
                                      newparams=newparams+ps[j];
                                    }
                                    %>
                                     &gt;  <a href="${pageScope.ctx}/product/c/<%=newparams%>"><%=is[1]%></a>
                                    <%
                                 }                                 
                                 if(ps.length>0)
                                 {                                   
                                   is=ps[ps.length-1].split("-");
                                   if(is.length==2)
                                   {
	                                 pageContext.setAttribute("_"+is[0],is[1]);
	                                 %>
	                                   &gt;  <%=is[1]%>
	                                 <% 
                                   }            
                                 }
                              }
                            %>                   
                            
                                         
						</div>	
						<jsp:useBean id="listmenu"  class="com.zzvcom.webapp.action.indexbean.LeftList" scope="page"/>	
						<div class="index-box  index-box-thin  index-box-thin-green box">
							<ul class="prolist layout">							  
							  <c:choose>
							    <c:when test="${empty params or params eq '*' or (fn:indexOf(params,'quality')>=0 and fn:indexOf(params,'size')<0)}">
							       <h3>Quality shortcut</h3>
							       <c:forEach var="menu" items="${pageScope.listmenu.items}">		
							         <li><a class="${pageScope._quality eq menu.quality.quality?'cur':''}" href="${pageScope.ctx}/product/c/quality-${menu.quality.quality}">[ ${menu.quality.quality} ]</a></li>
							       </c:forEach>
							    </c:when>
							    <c:otherwise>
							       <h3>Size of ${pageScope._quality} quality  shortcut</h3>
							       <% 
							         Object currentQualityObj=pageContext.getAttribute("_quality");
							         if(currentQualityObj!=null)
							         {
							           pageContext.setAttribute("currentMenu",listmenu.getCurrentItem(currentQualityObj.toString()));
							         }
							         
							       %>
							       <c:forEach var="size" items="${pageScope.currentMenu.sizes}">	
		                              <li><a class="${pageScope._size eq size.size?'cur':''}" href="${pageScope.ctx}/product/c/quality-${currentMenu.quality.quality}--size-${size.size}">[ ${size.size} ]</a></li>				               
							       </c:forEach>							       
							    </c:otherwise>
							  </c:choose>
							</ul>					
				        </div>
						<div class="index-box  index-box-thin  index-box-thin-dark titlebox">
							<h3>
								Product
							</h3>							
							<ul class="prolist layout">
							  <s:iterator value="resultPage.result">
							   <li><span><a href="${pageScope.ctx}/product/a/${id}" target="_blank"><img alt="${commodity}" src="${pageScope.ctx}/image/${image}@small.jpg"/></a></span>
							       <span><a href="${pageScope.ctx}/product/a/${id}" target="_blank" >${commodity}<br/>${quality}</a></span>
							       <span>Retail :usd ${nmb:randMoney(retailprice)}/Sq.ft.</span>
							       <span>Wholesale :<font color="red">usd ${nmb:randMoney(wholesaleprice)}/Sq.ft.</font></span>
							   </li>							  
							  </s:iterator>
							</ul>
							<ul class="pagebar layout">	
							    <s:set name="total" value="resultPage.totalPage" scope="page"/>
							    <s:set name="current" value="resultPage.currentPage" scope="page"/>
							    <c:forEach var="n" begin="1" end="${pageScope.total}">
							      <c:choose>
							         <c:when test="${n eq pageScope.current}">
							            <span class="cur">${n}</span>
							         </c:when>
							         <c:otherwise>
							           <a href="${pageScope.ctx}/product/c/${empty params?'*':params}/${n}">${n}</a>
							         </c:otherwise>
							      </c:choose>
							    </c:forEach>							    
							    <c:choose>
								    <c:when test="${pageScope.total eq pageScope.current}">
								      <span><i>NEXT</i></span>
								    </c:when>
								    <c:otherwise>
								      <a href="${pageScope.ctx}/product/c/${empty params?'*':params}/${pageScope.current+1}"><i>NEXT</i></a>
								    </c:otherwise>
								</c:choose>    	  							  						
							</ul>	
						</div>	
						<div class="spacer"></div>					
					</div>
				</div>
			</div>
			<%@ include file="../bottom.jsp"%>
		</div>
		<%@ include file="../common/foottags.jsp"%>
	</body>
</html>

